<script setup lang="ts">
import ModelAreaBox from "@/views/Student/UseModel/component/model-area-box.vue";
import { ref } from 'vue'
import { useRoute, useRouter} from "vue-router";
import {RollbackOutlined} from "@ant-design/icons-vue";

const route = useRoute()
const router = useRouter()

const goBack = () => {
  router.go(-1)
}
</script>

<template>
  <a-layout class="show-model-layout app-bg">
    <a-layout-header class="show-model-header">
      模型历史记录：0021
    </a-layout-header>
    <a-layout-content class="show-model-content">
      <model-area-box title="所用数据集"></model-area-box>
      <model-area-box title="预处理策略与模型参数"></model-area-box>
      <model-area-box title="预测文件下载"></model-area-box>
    </a-layout-content>
    <a-float-button type="default" @click="goBack" :style="{left: '12px',}">
      <template #icon>
        <RollbackOutlined />
      </template>
    </a-float-button>
  </a-layout>
</template>

<style scoped lang="scss">
.show-model-layout{
  position: relative;
  width: 100%;
  min-height: 100vh;
}
.show-model-header{
  background: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  color: #57A9FB;
  box-shadow:0 1px 0 0 #73A4D2FF;
}
.show-model-content{
  width: 100%;
  padding: 1rem 3rem;
  height: auto;
  margin: 0;
}
</style>